package com.htstar.ovms.device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.htstar.ovms.device.api.entity.DeviceOta;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceOtaMapper extends BaseMapper<DeviceOta> {

    void saveOrupdeviceOta(@Param("req") DeviceOta req);

    List<DeviceOta> getOnlineDevie();

    List<DeviceOta> getNoOnlineDevie();

    List<String> getReqOnlineDeviceList(@Param("deviceSnList") List<String> deviceSnList);
}
